package com.ideasindustry.photoontaje.service.providers.systemfile;

import java.io.File;

import com.ideasindustry.photoontaje.service.providers.PictureProviderBase;
import com.ideasindustry.photoontaje.service.providers.PictureProviderIterator;
import com.ideasindustry.photoontaje.service.providers.Tag;

public class SystemFilePictureProvider extends PictureProviderBase {
	
	public SystemFilePictureProvider(Tag[] tags) {
		super(tags);
	}

	public final static String KEY_FILE_URL = "fileUrl" ;
 	
	public PictureProviderIterator getIterator() {
		File path = new File(tags.get(KEY_FILE_URL));
		SystemFilePictureProviderIterator iterator = new SystemFilePictureProviderIterator(path);
		return iterator;
	}

	public Tag[] getProviderConnectionTagKeys() {
		return new Tag[] { new Tag( KEY_FILE_URL, true)};
	}
	
	
}
